﻿#ifndef CFILESTORAGELIB_H
#define CFILESTORAGELIB_H

#define FIESTORAGELIB_EXPORT __declspec(dllexport)

#include <string>
#include <vector>

FIESTORAGELIB_EXPORT void *createInstance();
FIESTORAGELIB_EXPORT void destoryInstance(void *obj);

FIESTORAGELIB_EXPORT void doSetServiceAddress(void *obj, std::string url);
FIESTORAGELIB_EXPORT bool doPushFile(void *obj, const std::string &localPath, const std::string &remotePath);
FIESTORAGELIB_EXPORT bool doPullFile(void *obj, const std::string &localPath, const std::string &remotePath);
FIESTORAGELIB_EXPORT bool doPushData(void *obj, const std::vector<uint8_t> &localData, const std::string &remotePath);
FIESTORAGELIB_EXPORT bool doPullData(void *obj, std::vector<uint8_t> &localData, const std::string &remotePath);
FIESTORAGELIB_EXPORT std::string doGetLastErrorText(void *obj);

#endif // CFILESTORAGELIB_H
